#!/bin/sh

# Obsolete 9/2/10 as the dag-tree algorithm has been removed - rwc

# colours for output
norm="[0m";
bold="[1;10m";
green="[1;32m";
red="[1;31m";
yellow="[1;33m";


test_identity() {
    $srcdir/tests/tree-builder.py 10 > random1.newick
    $srcdir/tests/tree-builder.py 10 > random2.newick
    ./qq random[12].newick > htree_dist_matrix
    ./qq --dag-tree random[12].newick > dag_dag_dist_matrix

    if ! cmp htree_dist_matrix dag_dag_dist_matrix; then
	echo "$redhtree and dag vs dag algorithms gave different results$norm"
	exit 2
    fi

    rm htree_dist_matrix dag_dag_dist_matrix random1.newick random2.newick
}

for i in 0 1 2 3 4 5 6; do
    test_identity
done
